git 您所在的位置:网站首页 远程连接 linux git

git

2023-03-25 14:00| 来源: 网络整理| 查看: 265

本地OS: ubuntu 18SSH连接远程服务器时,提示如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Permissions 0644 for '/home/VASTAI/kevinx/.ssh/vastai_rsa' are too open.It is required that your private key files are NOT accessible by others.This private key will be ignored.Load key "/home/VASTAI/kevinx/.ssh/vastai_rsa": bad [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

这是保存在~/.ssh目录下的私钥文件/home/VASTAI/kevinx/.ssh/vastai_rsa的访问权限太开放,修改该文件的权限为600即可,如下:

cd ~/.sshchmod 600 vastai_rsa


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有